using System;
using CommunityServer.Components;
using CommunityServer.Controls;
using System.Web;


namespace CommunityServer.ControlPanel.Controls
{
	/// <summary>
	/// Summary description for FilesEnabledValidator.
	/// </summary>
	public class FilesItemValidator : IMenuItem
	{
		public FilesItemValidator()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public bool IsValid(HttpContext context)
		{
			return ApplicationSet.Applications[ApplicationType.FileGallery].Enabled;
		}
	}
}
